//
//  NSObject+CastToClass.m
//  WeatherApp
//
//  Created by Yuliya Grasevych on 23.07.14.
//  Copyright (c) 2014 Yuliya Grasevych. All rights reserved.
//

#import "NSObject+CastToClass.h"

@implementation NSObject (CastToClass)

-(id)castToClass:(Class)cls
{
    id result = nil;
    if ([self isKindOfClass:cls]) {
        
        result = self;
    }
    return result;
}

@end
